﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Type" Object="Type" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="type_edit" data-title="编辑类型" data-lang="<%=ContentLang%>" data-id="<%=Request.QueryString["ID"]%>"  data-module-path="<%=Manager.GetModulePath("AliCMS.AdModule")%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="../type/list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">类型列表</a> → <b class="<%=ContentLang%>Font"><%=Type[Name]%></b></dt>
		<dd>
			<select data-ali-widget="combo" data-class="<%=ContentLang%>Font">
				<ali:List Mark="System" Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="?Lang=<%=ContentLang%>" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li class="ali-active"><a>编辑</a></li>
							<li><a href="resource/list.aspx?TypeID=<%=Request.QueryString["ID"]%>" target="ali-navtab">资源列表</a></li>
							<li><a href="resource/add.aspx?TypeID=<%=Request.QueryString["ID"]%>" target="ali-navtab">添加资源</a></li>
						</ul>				
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
							<tr>
								<th>名称：</th>
								<td>
									<input type="text" name="Name" value="<%=Type[Name]%>" size="40" maxlength="50" class="ali-input <%=ContentLang%>Font">
									<label><input type="checkbox" data-operation="CheckGuid">Guid：</label><input type="text" name="ID" value="<%=Type[ID]%>" size="40" maxlength="40" disabled class="ali-input ali-disabled">
								</td>
							</tr>
							<tr>
								<th>调用代码：</th>
								<td>
									<textarea name="InvokeCode" cols="70" rows="10" wrap="off" class="ali-input"><%=HttpUtility.HtmlEncode(Type[InvokeCode].ToString())%></textarea>
								</td>
							</tr>
							<tr>
								<th>描述：</th>
								<td>
									<textarea name="Description" cols="70" rows="10" wrap="off" class="ali-input  <%=ContentLang%>Font"><%=HttpUtility.HtmlEncode(Type[Description].ToString())%></textarea>
								</td>
							</tr>
							<tr>
								<th>模板(swf)：</th>
								<td>
									<input type="text" name="Template" value="<%=Type[TemplateFilePath]%>" size="55" class="ali-input"><a class="ali-button ali-uploader">浏览...</a>
									<input type="hidden" name="TemplateAllowedType" value="swf">
								</td>
							</tr>
							<tr>
								<th>数据文件名称（含扩展名）：</th>
								<td><input type="text" name="DataFileName" value="<%=Type[DataFileName]%>" size="30" maxlength="50" class="ali-input"></td>
							</tr>
							<tr>
								<th>数据模板：</th>
								<td>
									<textarea name="DataTemplate" cols="70" rows="10" wrap="off" class="ali-input"><%=HttpUtility.HtmlEncode(Type[DataTemplate].ToString())%></textarea>
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>